package com.alter.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 用戶相册
 */
@Entity
@Table(name = "AF_PHOTO_ALBUM")
public class AfPhotoAlbum extends EnabledEntity {

    private static final long serialVersionUID = 1L;
    @Column(nullable = false)
    private String name;
    @Column
    private String description;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(nullable = false, name = "user_id")
    private SeUser user;

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getDescription() {
	return description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    public SeUser getUser() {
	return user;
    }

    public void setUser(SeUser user) {
	this.user = user;
    }

}
